import java.util.Scanner;

public class Main1605 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int a= sc.nextInt();
        int x=a/10;
        int y=a%10;
        int b=x+y;
        System.out.println(b);
    }
}
